<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>springMVC</title>
<style type="text/css">
	form{
		line-height: 1.5em;
	}
	label + input {
		position:absolute;
		left : 80px;
	}
</style>
</head>
<body>
	<c:set var="ctx" value="${pageContext.request.contextPath}" />
	<a href="${ctx }/springMVC/ListEmployee">员工列表</a><br/>
	<form action="${ctx }/springMVC/UpdateEmployee" method="post">
		<input type="hidden" name="id" value="${employee.id }" />
		<label for="name">姓名</label><input type="text" name="name" id="name" value="${employee.name }"><br/>
		<label for="age">年龄</label><input type="text" name="age" id="age" value="${employee.age }"><br/>
		<label for="salary">薪资</label><input type="text" name="salary" id="salary" value="${employee.salary }"><br/>
		<label for="hireDate">入职日期</label><input type="text" name="hireDate" id="hireDate" placeholder="格式：2017-04-02"  value='<fmt:formatDate value="${employee.hireDate }" pattern="yyyy-MM-dd"/>'><br/>
		<input type="reset" value="重置">&nbsp;&nbsp;<input type="submit" value="提交"><br/>
	</form>
</body>
</html>